import java.util.function.Consumer;

/**
 * @ClassName Demo03
 * @Description Consumer 接口
 * @Author Li
 * @Date 2022/8/14 15:10
 * @ModifyDate 2022/8/14 15:10
 * @Version 1.0
 */
public class Demo03 {
    private static void consumeString(Consumer<String> consumer) {
        consumer.accept("Hello");
    }

    public static void main(String[] args) {
        consumeString(s -> System.out.println(s));
    }
}
